package com.loengmall.file;

import java.io.Serializable;

/**
 * @author mapengliang
 * @createTime 2020/7/20 10:32
 * @desc封装文件上传信息
 *  时间；
 *  Author；
 *  type:
 *  size;
 *  附加信息：
 *  后缀；
 *  文件内容-->文件的字节数组
 */
public class FastDFSFile implements Serializable {

    /*文件名字*/
    private String name;

    /*文件内容*/
    private byte[] content;

    /*文件扩展名*/
    private String ext;

    /*文件MD5摘要*/
    private String md5;

    /*文件创建者*/
    private String author;

    public FastDFSFile(String name, byte[] content, String ext) {
        this.name = name;
        this.content = content;
        this.ext = ext;
    }

    public FastDFSFile(String name, byte[] content, String ext, String md5, String author) {
        this.name = name;
        this.content = content;
        this.ext = ext;
        this.md5 = md5;
        this.author = author;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public byte[] getContent() {
        return content;
    }

    public void setContent(byte[] content) {
        this.content = content;
    }

    public String getExt() {
        return ext;
    }

    public void setExt(String ext) {
        this.ext = ext;
    }

    public String getMd5() {
        return md5;
    }

    public void setMd5(String md5) {
        this.md5 = md5;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }
}
